package com.zhouyu.exampledesignmoudle.bridge;

/**
 * @Description:消费者
 */
public class Consumer {
    private Way way = new WayH5();
    private Pay pay1 = new PayAlibaba(way);
    private Pay pay2 = new PayWechat(way);

    /**
     * 使用支付宝H5支付
     */
    public void createOrder1() {
        pay1.preOrder();
    }

    /**
     * 使用微信H5支付
     */
    public void createOrder2() {
        pay2.preOrder();
    }


}
